Turn off debug output for NaTpage consumption when ifa==0.
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Thu, 15 Dec 2005 23:17:06 +0000 (17:17 -0600)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Thu, 15 Dec 2005 23:17:06 +0000 (17:17 -0600)
In RHEL4, __strcpy_from_user seems to do this a lot (legally)
and the massive debug output may hide other errors.

xen/arch/ia64/xen/process.c

index 02c221527ec78d1f2794fd8782c1df8422e4993c..97425e40c61960c798188e7c93031a1c6cfb739d 100644 (file)
@@ -743,6 +743,13 @@ ia64_handle_reflection (unsigned long ifa, struct pt_regs *regs, unsigned long i
                        printf("ia64_handle_reflection: handling regNaT fault");
                        vector = IA64_NAT_CONSUMPTION_VECTOR; break;
                }
+#if 1
+               // pass null pointer dereferences through with no error
+               // but retain debug output for non-zero ifa
+               if (!ifa) {
+                       vector = IA64_NAT_CONSUMPTION_VECTOR; break;
+               }
+#endif
 printf("*** NaT fault... attempting to handle as privop\n");
 printf("isr=%p, ifa=%p,iip=%p,ipsr=%p\n",isr,ifa,regs->cr_iip,psr);
                //regs->eml_unat = 0;  FIXME: DO WE NEED THIS???